# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html

import scrapy

class LianjiaItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    pass

class ZufangItem(scrapy.Item):
	#链家：租房：奥林匹克公园：2居室
	#小区： 户型 面积 朝向 房租 更新日期
    title = scrapy.Field()  #标题
    link = scrapy.Field()  #链接
    price = scrapy.Field()  #价格
    time_unit = scrapy.Field()  #价格对应的时间单位（每天，每月）
    area = scrapy.Field()  #面积(㎡)
    rooms = scrapy.Field()  #几居室
    halls = scrapy.Field()  #几厅
    rentType = scrapy.Field()  #租借类型(合，整，直)
    floorLoc = scrapy.Field()  #房间所在楼层
    floorTotal = scrapy.Field()  #大楼总层数
    lng = scrapy.Field()  #房间所在经度
    lat = scrapy.Field()  #房间所在维度
    direction = scrapy.Field()  #房屋朝向
    confGen = scrapy.Field()  #第几代配置
    confType = scrapy.Field()  #配置风格(布丁，木棉等)
    privateBathroom = scrapy.Field()  #是否有独立卫生间(0:否,1:是)
    privateBalcony = scrapy.Field()  #是否有独立阳台(0:否,1:是)
    heatingType = scrapy.Field()  #供暖方式(0:集体供暖,1:独立供暖,2:中央空调)
    nearestSubWayDist = scrapy.Field()  #最近地铁距离(m)
    confStatus = scrapy.Field()  #房屋配置状态(0:配置中,1:配置完成)
    district = scrapy.Field()  #区

